projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b436ee
)
themingengine: set the cairo extend to PAD when we're stretching bg
author
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 8 Nov 2011 17:36:55 +0000
(12:36 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 8 Nov 2011 17:41:28 +0000
(12:41 -0500)
This avoids artifacts around the borders due to bilinear filtering cairo
applies to the surface pattern when stretching it.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
gtk/gtkthemingengine.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingengine.c
b/gtk/gtkthemingengine.c
index 8d6da01018860df8a3ef3dad7e88d1984854eab9..f068c3d38dbb9412beb53e5b9d1239acf4877439 100644
(file)
--- a/
gtk/gtkthemingengine.c
+++ b/
gtk/gtkthemingengine.c
@@
-1622,6
+1622,7
@@
render_background_internal (GtkThemingEngine *engine,
}
else
{
+ cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
scale_width = width;
scale_height = height;
}